<template>
  <Row class="layout-content-body">
    <player 
      :play-list="playList" 
      :is-live="isLive"
    />
  </Row>
</template>

<script>
// import api from '../../api'
import player from '@/components/player/playlive.vue';
export default {
  components: {
    player
  },
  data: function () {
    return {
      playList: [],
      isLive: true
    };
  },
  mounted () {
    this.getall();
  },
  methods: {
    getall () {
      this.spinShow = true;
      this.$api.GetLiveList().then(res => {
        if (!res.error) {
          this.playList = res.Data;
          console.log(this.playList);
          //            this.videoOptions.sources[0]=this.playList[0]
        } else {
          this.$Notice.warning({
            title: '数据异常',
            desc: res.message
          });
        }
      });
    }
  }
};
</script>
